namespace SubhadraSolutions.Sharp.Logging.Adapters.EnterpriseLibrary
{
    using SubhadraSolutions.Sharp.Logging.Loggers;

    using Microsoft.Practices.EnterpriseLibrary.Logging;

    public class EnterpriseLibraryLogger : AbstractLogger
    {
        #region Constructors

        public EnterpriseLibraryLogger()
        {
            Logger.SetLogWriter(new LogWriterFactory().Create());
        }

        #endregion Constructors

        #region Methods

        protected override void log(LogStoreItem item)
        {
            Logger.Write(item);
        }

        #endregion Methods
    }
}